package com.fang.control;

import com.fang.bean.UserInfoBean;
import com.fang.service.IUService;

public class UserInfoServlet {
    UserInfoBean userInfoBean;
    IUService iuService;


    public void setUserInfoBean(UserInfoBean userInfoBean) {
        this.userInfoBean = userInfoBean;
    }

    public void setIuService(IUService iuService) {
        this.iuService = iuService;
    }

    public UserInfoServlet() {
    }

    public UserInfoServlet(UserInfoBean userInfoBean, IUService iuService) {
        this.userInfoBean = userInfoBean;
        this.iuService = iuService;
    }

    public void doServlet(){
        System.out.println("进行依赖注入"+userInfoBean.toString());
        iuService.doService();
    }
}
